<template>
    <div>
        <h2>小熊二</h2>
        <h2>大伯给的{{ food }}</h2>
    </div>
</template>

<script>
export default {
    data() {
        return {
            food: "",
        };
    },
    mounted() {
        this.$eventBus.$on("dabogei", (msg) => {
            console.log(msg);
            this.food = msg;
        });
    },
};

</script>

<style lang="scss" scoped>

</style>